package com.cctc.rds.nrpc.api.connection;

import java.util.List;

public interface ConnectionPool {
    void put(Connection connection);

    Connection get(String remoteIp, int remotePort);

    void remove(String remoteIp, int remotePort);

    List<Connection> list();

    int count();

    void shutdown() throws Exception;
}
